package com.base.cn.platform.os.service.course.mould;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.course.CourseBaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 模块与素材的关联的接口
 *
 * @author s.li
 * @create 2018-04-25-14:01
 */
@FeignClient(name = CourseBaseService.appName,configuration = FeignAuthConfig.class)
public interface CouMouldMaterialService extends CourseBaseService {
    /**
     * 保存模块与素材的关联
     * @param mouldId 模块ID
     * @param materialIds 素材的ID串
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/saveCouMouldMaterial")
    Map<String,Object> saveCouMouldMaterial(@RequestParam("mouldId") BigDecimal mouldId,
                                            @RequestParam("materialIds") String materialIds);
}
